package com.wfh.easychat.service;

import com.wfh.easychat.model.entity.UserContact;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wfh.easychat.model.entity.UserInfo;
import com.wfh.easychat.model.vo.UserContactVo;

/**
* @author fenghuanwang
* @description 针对表【user_contact(联系人)】的数据库操作Service
* @createDate 2025-09-29 18:19:23
*/
public interface UserContactService extends IService<UserContact> {

    /**
     * 搜索用户/群组
     * @param id
     * @param contactId
     * @return
     */
    UserContactVo search(Long id, Long contactId, Integer type);

    /**
     * 发出好友添加申请
     * @param loginUser
     * @param contactId
     * @param applyInfo
     * @param type
     * @return
     */
    Integer applyAdd(UserInfo loginUser, Long contactId, String applyInfo, Integer type);
}
